package com.ehome.poct.core.constant;

import com.ehome.exception.BaseBusiEnum;

/**
 * @author pxh
 * @description 订单相关错误码
 */
public enum OrderBizCodeEnums implements BaseBusiEnum {

    NOT_FOUND_TEST_ORDER(3000001, "检测订单不存在，orderNo:[ %s ]"),
    DUPLICATE_PAYMENT(3000002, "订单已支付，请勿重复支付"),
    ORDER_REFUND_DISABLE_CHECK(3000003, "当前订单已被退款，请重新下单如有疑问请联系客服：4008030907"),
    ORDER_WAIT_PAY(3000004, "订单待支付"),
    TEST_ORDER_IS_NULL(3000005, "检测订单不存在"),
    STRIP_DIVIDE_INTO_SCHEMES_ERROR(3000006, "分成方案错误"),
    ORDER_NO_IS_NULL(3000007, "订单编号不能为空"),
    ORDER_ITEM_NO_IS_NULL(3000008, "检测项为空"),
    PAY_AMOUNT_NO_IS_NULL(3000009, "实付金额不能为空"),
    SHARE_ACCOUNT_AMOUNT_FAIL(3000010, "分账金额错误，支付金额大于分账金额"),
    ORDER_BUSINESS_FAIL(3000011, "订单类型错误"),
    QUERY_PRICE_SCHEME_FAIL(3000012, "获取诊所价格方案失败"),
    ORDER_ITEM_IS_NULL(3000013, "检测项不能为空"),
    ORDER_RECORD_DETAILS_IS_NULL(3000014, "检测记录不能为空"),
    ORDER_RECORD_DETAILS_ID_IS_NULL(3000014, "检测记录ID不能为空"),
    ORDER_PROFIT_NOT_FOUND(3000015, "订单分润记录不存在 orderNo:[{%s}]"),
    ORDER_RECORD_DETAILS_NOT_FOUND(3000016, "检测记录不存在"),

    ;

    OrderBizCodeEnums(Integer busiCode, String msg) {
        this.busiCode = busiCode;
        this.msg = msg;
    }

    private final Integer busiCode;
    private final String msg;

    @Override
    public Integer getBusiCode() {
        return busiCode;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
